package com.gitee.pifeng.monitoring.ui.business.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author xuhailong
 * @Date: 2023/11/14 15:01
 * @Description: 监控配置关系表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("monitor_config_user")
@Schema(description = "数据配置对象")
public class MonitorConfigUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @Schema(description = "配置表主键ID")
    @TableField("ConfigID")
    private Long ConfigID;

    @Schema(description = "用户ID")
    @TableField("userID")
    private Long userID;

    @Schema(description = "是否选中")
    @TableField("checked")
    private Integer checked;

    @Schema(description = "插入时间")
    @TableField("create_time")
    private Date createTime;

    @Schema(description = "电子邮箱")
    @TableField(exist = false)
    private String email;
}
